|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
this is the error message i got: [] Can't locate /usr/local/etc/httpd/htdocs/ubbthreads/cron/languages/english.pl at w3t.pm line 40. Compilation failed--compilation aborted at doexpire.pl line 22. [/] this is turning into a nitemare! 
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
So fix the path on line 40 of w3t.pm.
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
|
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
It's a file in the /cron/perl folder. You need to edit the paths inside. 
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
aha, ta! this is the line it's referring to: [] require "$config{'path'}/languages/$config{'language'}.pl"; [/]
so what is it exactly i add? and where to? in the {'path'} section?
Last edited by monkeyra; 11/09/2002 8:19 AM.
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Just put in the path for the file that it's looking for. I think it would be:
require '/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl';
|
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
You also will probably need to edit w3tvars.pm There are a bunch of settings in there.... like the url this will need, database name, password, table prefix etc... 
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
ok, next hiccup. I amended the w3t.pm and w3tvrs.pm and then tried to run perl doexpire.pl again. I got a different error message this time, and I dont know what it means. [] Barewod found where operator expected at w3t.pm line 40, near /etc/httpd" (Missing operator before httpd?) syntax error at w3t.pm line 40, near "/etc/httpd" Compilation failed--compilation aborted at doexpire.pl line 22[/]
This is the line I amended, I think correctly, but possibly not [] require "$config{usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl}/languages/$config{'language'}.pl"; [/]
|
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I think it should be:
require "/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/$config{'language'}.pl";
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
See my post above. I specified the correct syntax for the "require". Don't bother using the $config stuff in the path here. You're just trying to get the thing to run. If you get that far, then you can worry about cleaning it up.
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
okey dokey, i done that and i've still got the same error message. just to confirm, this is the line in my w3t.pm file.
[] require '/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl'; [/]
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
By "same error", you mean you're still getting "Can't locate /.../english.pl at w3t.pm line 40." ? If so, are you sure that's the correct path to english.pl?
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Virtual FreeBSD ..... hmmmmm  I used to use a similar server, and I remember the paths being kind of weird, and I had play around a bit to figure out what paths to use from cron. 1) When you're in the directory that contains english.pl, what's the output if you type "pwd"? 2) What happens if you type "virtual perl -v" ?
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
aha! I get a different path! /usr/home/nickjenk/usr/local/etc/httpd/ubbthreads/cron/perl/languages
when i type virtual perl -v it comes up "This is perl, v5.6.1 built for i386-freebsd yadda yadda yadda....."
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
That means that you don't have the Perl DBI (database interface) module installed. That module is needed for accessing a MySQL database from Perl. (I don't have that module installed either, so I can't use Perl for MySQL stuff.) Your choices: 1) Install the DBI.pm module from CPAN.org. 2) Install PHP as a static binary. 3) Give up. 
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
lol!! thanks dave. i'll have a look at installing those 2moro (maybe, lack of enthusiasm!)
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Another thought. I haven't tried this, but you might be able to run the PHP version doexpire.php from your browser. Running it occassionally (e.g., once a week) might be easier than trying to get the cron stuff working. Assuming it works, you might want to password-protect the threads cron directory, so that not everyone can run it.
|
|
|
|
|
Joined: Jun 2001
Posts: 356
Junior Member
|
|
Junior Member
Joined: Jun 2001
Posts: 356 |
ok, i gave it a go. [] Fatal error: Failed opening required 'path/to/ubbthreads/main.inc.php' (include_path='.:') in /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.php on line 22 [/]
|
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
[]path/to/ubbthreads/main.inc.php[/] Something needs to be edited. Don't know where it's getting /path/to/ubbthreads. But wherever that is, that should be a real path. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 531
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
|
|
|
|